﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TopBar.ascx.cs" Inherits="BTS.Control.TopBar" %>

<%@ Import Namespace="BTS" %>
<%@ Import Namespace="BTS.Constant" %>
<%@ Import Namespace="BTS.Entity" %>

<table border=0 width=1000 height=100%>
<tr height=100><td bgcolor="#99ccff"> <img src="img/sys/banner.jpg" width="100%" height="100px" /></td></tr>
<tr height=30 >
    <td>
        <table border=0 >
        <tr bgcolor=white>
            <td width="100px" align="center"><a href="Home.aspx">Home</a></td>
            <td>
                <table border=0 ><tr>
                
                <td width="700px" align="center"><img src="<%= Config.URL_PIC_SYS + "/mail.jpg" %>" width="16px" height="12px" /> คุณมี 2 ข้อความที่ยังไม่ได้เปิดอ่าน</td>                        
    <!--            <td width="100px" align="center"><a href=#>About</a></td> -->
                <td width="200px" align="right" NOWRAP>
    <%
        string userHTML = "";
        if (Session[SessionVar.USER]!=null)
        {
            AppUser user = (AppUser)Session[SessionVar.USER];
            userHTML = user._firstname + "&nbsp" + user._surname + "(<a href=\"LogOut.aspx\">Logout</a>)";        
        } else {
            userHTML = "Guest";
        }
           
        
    %>            
                &nbsp&nbsp&nbsp<%= userHTML %>&nbsp</td>
                </tr></table>
           </td>
        </tr>       
    </td>
</tr>

